package org.glut.backend.config;

import lombok.Data;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
public class SmsConfig {
    @Value("${sms.api.url}")
    private String apiUrl;

    @Value("${sms.appcode}")
    private String appcode;

    @Value("${sms.template.id}")
    private String templateId;

    @Value("${sms.sign.id}")
    private String signId;

    @Bean
    public CloseableHttpClient httpClient() {
        return HttpClients.createDefault();
    }
}